@extends('frontend.layout.base')

@section('body')
    <div class="well well-lg" style="text-align: center;">
        <p>跳转中，请稍后...</p>
    </div>
    <div class="qql_share_bg qql_top" id="qql_top">
        <div class="qql_share_boxbg"></div>
        <div class="qql_share_box">
            <img src="/images/tips.png">
        </div>
    </div>
@stop

@section('js')
    <script>
        function is_weixin() {
            var ua = navigator.userAgent.toLowerCase();
            if (ua.match(/MicroMessenger/i) == "micromessenger") {
                return true;
            } else {
                return false;
            }
        }
        if (is_weixin()) {
            window.location.href = '{{ $game->getOriginal('wx_download_url') }}';;
        } else {
            window.location.href = '{{ $game->getOriginal('download_url') }}';
        }


    </script>
@stop